package com.runa.persistence.entity;

import javax.persistence.*;

/**
 * 2022/7/12 16:06
 * zhangYB
 */
@Entity
@Table(name = "sys_dic", schema = "dispatch_platform")
public class EntitySysDic {


    private Integer id;
    private String code;
    private String name;
    private String value;

    public EntitySysDic() {
    }

    public EntitySysDic(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public EntitySysDic(String code, String name, String value) {
        this.code = code;
        this.name = name;
        this.value = value;
    }

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "value")
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }



}
